package demo1;

public class HashMain {
    public static void main(String[] args){
        HashBuck hash=new HashBuck();
        hash.push(1,520);
        hash.push(2,13);
        hash.push(3,14);
        hash.push(4,1);
        hash.display();
        hash.getval(1);
        System.out.println("可存储各类型的哈希桶");
        HashBuck2<String,String> hash2=new HashBuck2<>();
        hash2.push("小苗","100分");
        hash2.push("扣扣","89分");
        hash2.push("李名","70分");
        hash2.push("拉拉","60分");
        hash2.push("微微","50分");
        hash2.push("付付","40分");
        hash2.display();
        hash2.getval("付付");
    }
}
